<?php

/**
 * 举报类型
 * @BelongProject: flami_mangers
 * @CreateTime: 2025-11-05 21:30:48
 * @Description: TODO
 */

namespace app\admin\service;

use app\admin\model\UserReportClassifyModel;

class ReportClassifyService
{
    /**
     * 获取列表
     * @param $params
     * @return \think\Paginator
     * @throws \think\db\exception\DbException
     */
    public static function getData($params): \think\Paginator
    {
        $condition = [
            'del_flag' => 0,
            'type' => $params['type'],
            'lang_id' => $params['langId'],
        ];

//        if(!empty($params['keyword'])){
//            $map[]=['name','like',"%".$params['keyword']."%"];
//        }
        $model = new UserReportClassifyModel();
        return $model->where($condition)
            ->order("list_order asc")
            ->paginate(20);
    }
}